package com.piker.pikeropen.server;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable
public class HoleDTO {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key mKey;

	@Persistent
	private int mNumber;

	@Persistent
	private int mYardage;

	@Persistent
	private int mHandicap;

	@Persistent
	private int mPar;

	public HoleDTO(Key key, int number, int yardage, int handicap, int par) {
		super();
		mKey = key;
		mNumber = number;
		mYardage = yardage;
		mHandicap = handicap;
		mPar = par;
	}

	public Key getKey() {
		return mKey;
	}

	public void setKey(Key key) {
		mKey = key;
	}

	public int getYardage() {
		return mYardage;
	}

	public void setYardage(int yardage) {
		mYardage = yardage;
	}

	public int getHandicap() {
		return mHandicap;
	}

	public void setHandicap(int handicap) {
		mHandicap = handicap;
	}

	public int getPar() {
		return mPar;
	}

	public void setPar(int par) {
		mPar = par;
	}

	public int getNumber() {
		return mNumber;
	}

	public void setNumber(int number) {
		mNumber = number;
	}
}
